package com.andreas.serviceImp;

import com.andreas.mapper.TestMapper;
import com.andreas.service.TestService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Author andreaszhou
 * @ClassName UserServiceImp
 * @Description TODO
 * @date 2021/1/19 9:21
 * @Version 1.0
 */
@Service
public class TestServiceImp implements TestService {
    @Resource
    private TestMapper userMapper;
    @Override
    @Transactional
    public int insertUserService(int id, String name) {
        return userMapper.insertUserByValue(id,name);
    }
}
